<?php
namespace app\admin\controller;
use app\Admin\model\Log as LogModel;
use think\Controller;
use app\admin\controller\Common;
class Log extends Common {
	public function index(){
		$list = LogModel::order('id desc')->paginate(20);
    	$this->assign('list',$list);
		return $this->fetch();
	}
	public function logdel($time){
		model('Log')->logdel($time);
		$this->success('ok');
		$this->redirect(url('Log/index'));
		return $this->fetch();
	}
}
?>